package com.game.framework.dao.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.game.framework.dao.entity.AccountEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p> * 账户表 Mapper 接口 * </p>
 */
@Mapper
public interface AccountMapper extends BaseMapper<AccountEntity> {

    AccountEntity selectByUserId(@Param("userId") Long userId);

    AccountEntity selectByAccount(@Param("account") String account);

    Boolean updateAccountPassword(AccountEntity accountEntity);

    Boolean removeByUserId(@Param("userId") Long userId);

    Boolean removeByAccount(@Param("account") String account);

}